'use client';
import "./globals.css";
import Navigation from "@/components/Navigation";
import { Provider } from 'react-redux';
import { store } from "@/lib/store/store";
import { useState } from "react";



export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {

  const [isScroll, setIsScroll] = useState("auto");


  return (
    <html data-theme="corporate" lang="zh">
      <head>
        <title>随便玩玩ay</title>
      </head>
      <body>
        <Provider store={store}>
          <Navigation />
          {children}
        </Provider>
      </body>

    </html>
  );
}
